package webapp.mvc.finders;

import com.zoowii.jpa_utils.extension.ExtendFinder;
import webapp.mvc.models.UserEntity;

public class UserFinder extends ExtendFinder<String, UserEntity> {
    public UserFinder(Class<?> kCls, Class<?> mCls) {
        super(kCls, mCls);
    }
    public UserEntity findByUsername(String username) {
        return this.where().eq("username", username).first();
    }
}
